<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="../css/reset.css" />
<link rel="stylesheet" type="text/css" href="../css/common.css" />
<link rel="stylesheet" type="text/css" href="../css/index.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<jsp:include page="/main/header.jsp"></jsp:include>
<title>상세 보기</title>
<%@ page import="com.popcorn.rmsystem.controller.*" %>
<%@ page import="com.popcorn.rmsystem.dao.*" %>
<%@ page import="com.popcorn.rmsystem.model.*" %>
<script type="text/javascript">
function NullCheck(){
	var form = document.rms;
	
	if(form.TEAM_NAME.value==''){
		alert("팀명을 입력하세요");
		form.TEAMNAME.focus();
	}
	else if(form.NAME.value==''){
		alert("이름을 입력하세요");
		form.NAME.focus();
	}
	else if(form.HP1.value==''){
		alert("지역번호을 입력하세요");
		form.HP1.focus();
	}
	else if(form.HP2.value==''){
		alert("중간 번호를 입력하세요");
		form.HP2.focus();
	}
	else if(form.HP3.value==''){
		alert("마지막 번호를 입력하세요");
		form.HP3.focus();
	}
	else if(form.TRANDATE.value==''){
		alert("날짜를 입력하세요");
		form.TRANDATE.focus();
	}
	else if(form.STARTTIME.value==''){
		alert("시작 시간을 입력하세요");
		form.STARTTIME.focus();
	}
	else if(form.ENDTIME.value==''){
		alert("끝 시간을 입력하세요");
		form.ENDTIME.focus();
	}
	else if(form.ROOMSIZE.value==''){
		alert("방 크기를 입력하세요");
		form.ROOMSIZE.focus();
	}
	else form.submit();
}
</script>
<body>
<%
	String idx = request.getParameter("idx");
	RMSystemModel model = (RMSystemModel) request.getAttribute("model");
	String DATE = model.getTRANDATE();
	String uDATE = DATE.substring(0, 4);
					uDATE +="-";
					uDATE += DATE.substring(4, 6);
					uDATE +="-";
					uDATE += DATE.substring(6, DATE.length());
	
	String [] HP = model.getHP().split("-");
%>
<br><br><br><br><br><br><br><br><br>
<div class="content_inner">
   <div class="container">
      <div class="container_inner clearfix">
<div class="wrap">
	<h1>상세페이지</h1>
	<div class="table" style="width: 500px;">
	<div class="textinput"><%= "No."+model.getRMS_IDX() %></div>
	<div class="textinput" style="background-color: white;"> 팀 명  : <%=model.getTEAM_NAME()%></div>
	<div class="textinput" style="background-color: white;">	이 름  : <%=model.getNAME()%></div>
	<div class="textinput" style="background-color: white;">	H P : <%=HP[0]%>-<%=HP[1]%>-<%=HP[2]%></div>
	<div class="textinput" style="background-color: white;">	날 짜  : <%=uDATE%></div>
	<div class="textinput" style="background-color: white;">	시 간  : <%=model.getSTARTTIME()%>시~<%=model.getENDTIME()%>시
		<font SIZE="2">&nbsp;&nbsp;※&nbsp;24시간&nbsp;기준(OPEN&nbsp;10:00/CLOSE&nbsp;22:00)</font></div>
	<div class="textinput" style="background-color: white;">	크 기  : <%=model.getROOMSIZE() %></div>
		<input TYPE="button" value="목록" onclick="window.location.href='RMSListDB.bo'" style="width: 500px;">
</div></div></div></div></div>
</body>
</html>